<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <ui:composition template="/publico/template.xhtml">
        <ui:define name="content">
            <h:form id="formLote">
                <p:messages/>

                <p:panel id="panelPrincipal"
                         header="Pesquisar Lote">
                    <p:focus for="numeroLote"/>
                    
                    <h:panelGrid columns="4" cellpadding="10">
                        <h:outputLabel for="numeroLote" value="Número do Lote*:"/>
                        <p:inputText id="numeroLote" 
                                     value="#{processoBean.codigo}" 
                                     required="true"/>
                        
                        <p:commandButton id="cbPesquisar"
                                         ajax="false"
                                         action="#{processoBean.buscarProcesso()}" 
                                         value="Pesquisar"/>
                    </h:panelGrid>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
